$OpenBSD: patch-tools_Makefile_am,v 1.2 2010/09/16 07:52:54 sthen Exp $
--- tools/Makefile.am.orig	Sat Jul 24 22:16:56 2010
+++ tools/Makefile.am	Sat Sep  4 21:32:14 2010
@@ -24,6 +24,14 @@ LIN_SRC =
 LIN_DEFS = 
 endif
 
+if HAVE_OPENBSD
+OBSD_SRC =  panoinfo_unix.c
+OBSD_DEFS = -D__Ansi__=1
+else
+OBSD_SRC =
+OBSD_DEFS = 
+endif
+
 if HAVE_DARWIN
 DAR_SRC =  panoinfo_unix.c
 DAR_DEFS = -D__Ansi__=1
@@ -40,7 +48,7 @@ SOL_SRC =
 SOL_DEFS = 
 endif
 
-AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS)
+AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS) $(OBSD_DEFS)
 AM_LDFLAGS  = -L${top_builddir}
 
 # PTAInterpolate can only be compiled with ptpicker.h, which in turn depends on java
@@ -85,7 +93,7 @@ PTtiffdump_LDADD   = -l${PANOLIB} -ljpeg -ltiff
 PToptimizer_SOURCES = PToptimizer.c
 PToptimizer_LDADD   = -l${PANOLIB}
 
-panoinfo_SOURCES    = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC)
+panoinfo_SOURCES    = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC) $(OBSD_SRC)
 panoinfo_LDADD      = -l${PANOLIB}
 
 EXTRA_DIST = README.PTmender \
